package com.ddtech.business.web.entity;

import com.ddtech.business.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 收藏记录表
 * </p>
 *
 * @author bin_pu
 * @since 2023-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="CollectRecord对象", description="收藏记录表")
public class CollectRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "业务id")
    private String busId;

    @ApiModelProperty(value = "学员id")
    private String userId;

    @ApiModelProperty(value = "学员姓名")
    private String userName;

    @ApiModelProperty(value = "课程/题库名称")
    @NotBlank(message = "课程名称不能为空")
    private String name;

    @ApiModelProperty(value = "类型:1课程 2习题")
    private Integer type;

    @ApiModelProperty(value = "主题图片")
    private String themeImage;
}
